﻿namespace Sidvall.Data.Sqlite
{
	public class TransactionScopeFactory : Sidvall.Data.ITransactionScopeFactory
	{
		#region Business Members

		#region GetTransactionScope

		public Sidvall.Data.ITransactionScope GetTransactionScope()
		{
			TransactionSettings settings;

			settings = new TransactionSettings();

			return GetTransactionScope(settings);
		}
		public Sidvall.Data.ITransactionScope GetTransactionScope(TransactionSettings settings)
		{
			return TransactionManager.GetTransactionScope();
		}

		#endregion
		#region ToString

		public override string ToString()
		{
			return "TransactionScopeFactory - SQLite.Net.SQLiteConnection";
		}

		#endregion

		#endregion
	}
}
